package com.amado.course14Recursion;
/**
 * 递归
 * @author Administrator
 *
 */
public class Recursion1Hello {
	
	public static void main(String[] args) {
		test(1);
	}
	//==2,3,4
	public static void test(int i){
		if(i==5){
			System.out.println(i);
		}else{
			test(i+1);//i=1
			System.out.println(i);
		}
	}
	//打印  5
	
	
	
	

}
